
FROM java:8
VOLUME /c'd
COPY target/jeecg-boot-module-system-2.2.0.jar demo.jar
#VOLUME ["/img/files","/files"]
#VOLUME ["/img/files","/files"]
ENV LANG C.UTF-8
RUN bash -c "touch /demo.jar"  && \
#设置时间
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone
#-e LC_ALL="en_US.UTF-8" -e TZ="Asia/Shanghai"
EXPOSE 8081
ENTRYPOINT ["java","-jar","demo.jar"]
#构建语句
#docker build -t jiazhunag:1.1 .
#运行语句
#&& docker run -p 8686:8081 --name jiazhuang --volumes-from file  jiazhunag:1.1
